curl --request PUT \
--url https://api.worktruck.app/api/v1/agent-configs/{blueprint} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"budget_default_cents": 123,
"deadline_default_seconds": 123,
"guardrails": "<unknown>",
"schedule": "<string>"
}
'{
"agent_blueprint": "<string>",
"byok_status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"guardrails": "<unknown>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"budget_default_cents": 123,
"byok_last_probed_at": "2023-11-07T05:31:56Z",
"byok_status_reason": "<string>",
"deadline_default_seconds": 123,
"schedule": "<string>"
}curl --request PUT \
--url https://api.worktruck.app/api/v1/agent-configs/{blueprint} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"budget_default_cents": 123,
"deadline_default_seconds": 123,
"guardrails": "<unknown>",
"schedule": "<string>"
}
'{
"agent_blueprint": "<string>",
"byok_status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"guardrails": "<unknown>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"budget_default_cents": 123,
"byok_last_probed_at": "2023-11-07T05:31:56Z",
"byok_status_reason": "<string>",
"deadline_default_seconds": 123,
"schedule": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Agent blueprint identifier
Request body for PUT /agent-configs/{blueprint}. Full-replace semantics —
any field omitted from the body reverts to NULL / []. BYOK key entry
is a separate endpoint (PUT /agent-configs/{blueprint}/byok-key) so raw
secrets never flow through the generic upsert path.
Default budget cap in USD cents for a run enqueued under this kind.
Default wall-clock deadline in seconds from run start.
JSON array of guardrail rule primitives. Defaults to [] if omitted.
Cron expression (5-field POSIX, extended with seconds optional).
Config upserted
A single agent_configs row as exposed over the REST API. Deliberately
omits byok_key_ref and byok_key_version — those never cross the
API boundary.
Was this page helpful?